/*
 * @Description:值传递与引用传递
 * @Author: admin
 * @Date: 2021-06-07 17:17:39
 * @LastEditors: admin
 * @LastEditTime: 2021-06-07 17:24:23
 */

// var a = 3;
// var b = a;
// console.log(a); // 3
// console.log(b); // 3
// a = 4;
// console.log(a); // 4
// console.log(b); // 3

var c = {
  name: "tom",
  age: 18,
}
var d = c;

console.log(c);
console.log(d);
delete c.name
console.log(c);
console.log(d);